package api

import "beetle/internal/handler"

// registRedisRecordAPI registRedisRecordAPI
func registRecord(app *App) {
	api := app.Application().Party("/record")
	{
		handler := handler.NewRedisRecordHanler(recordService)
		api.Get("/request-mode/option", handler.RequestModeOption)
		api.Post("/save", handler.SaveRecord)
		api.Post("/update", handler.UpdateRecord)
		api.Post("/remove/{id}", handler.RemoveRecord)
		api.Get("/{id}", handler.GetRecord)
		api.Post("/page", handler.PageRecord)
		api.Get("/log/{id}", handler.Log)
	}

}
